<h1>Listing people</h1>

<table>
  <tr>
    <th>Username</th>
    <th>Password</th>
    <th>Email</th>
    <th>Utype</th>
  </tr>

<% @people.each do |person| %>
  <tr>
    <td><%=h person.username %></td>
    <td><%=h person.password %></td>
    <td><%=h person.email %></td>
    <td><%=h person.utype %></td>
    <td><%= link_to 'Show', person %></td>
    <td><%= link_to 'Edit', edit_person_path(person) %></td>
    <td><%= link_to 'Destroy', person, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New person', new_person_path %>
<%= link_to 'Login', :action => 'login', :id => 1 %>
